<template>

  {{ initValue }}
  <wang-editor :initValue="initValue" @getEditorContent="onEditorChange"></wang-editor>
  
  </template>
  
  <script setup>
  
  
  import WangEditor from '@/components/WangEditor.vue';
  import { ref } from 'vue';
  const initValue=ref("");//初始值

  const onEditorChange = (arr, html) => {// 输入内容
      console.log(arr, html);//html就是给后端的数据
  }
  
  
  </script>
  
  <style>
  
  </style>